package com.bestv.bsr.core.context;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @author taojiacheng
 */
@Data
@Accessors(chain = true)
public class RecommendContext {

    private String aiSource;

    /**
     * 初始化
     */
    private int size;

    /**
     * 转换后的sceneId
     */
    private String thirdSceneId;

    /**
     * todo 从tvProfile 取值
     */
    private String osProfile;

    /**
     * todo
     */
    private String sn;

    /**
     * 场景类型
     * 0: 点播场景（默认）
     * 1: 直播场景
     * 2: 回看场景
     */
    private String sceneType = "0";

    /**
     * 安徽移动channel
     * 1：猜你喜欢
     * 2：相关推荐
     * 3：热门推荐
     * 4：其他类型
     */
    private String channel;


    private String userId;
    private String userAccount;
    private String methodType;
    private String sceneId;
    private String mac;
    private String tvProfile;
    private String sizeStr;
    private List<String> itemCodes;
    private List<String> itemTypes;
    private String userGroup;
    private String apkCode;
    private String station;

    // =============== 安徽移动补充参数 ===============
    private String userGroupCode;
    private String ruleCode;
    private String partnerUserAccount;
    private String deviceid;
    private List<String> ahCodes;

    // =============== 安徽移动接口参数 ===============
    private String cateName;

    public String getUserAccount() {
        return StringUtils.isNotBlank(userAccount) ? userAccount : partnerUserAccount;
    }
}
